package com.bfxy.disruptor;
import java.util.concurrent.TimeUnit;

public interface Lock {

    void lock();//获取锁

//    void lockInterruptibly() throws InterruptedException;//线程打断的锁

//    boolean tryLock();//尝试获取锁

//    boolean tryLock(long time, TimeUnit unit) throws InterruptedException;//尝试获取锁时间限制

    void unlock();//解锁

//    Condition newCondition();//wait  notify
}
